//
//  IBView.m
//  Travel_M_Travel
//
//  Created by dlios on 15-3-21.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "IBView.h"

@implementation IBView

- (void)dealloc
{
    [_imageView release];
    [_button release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width / 3, frame.size.height)];
        [self addSubview:_imageView];
        [_imageView release];
        
        self.button = [UIButton buttonWithType:UIButtonTypeSystem];
        self.button.frame = CGRectMake(frame.size.width / 3, 0, frame.size.width * 2 / 3, frame.size.height);
        [self addSubview:_button];
        [_button release];
    }
    return self;

}






@end
